import request from '@/utils/request'

// 查询 销售日报 列表
export function listSalesDayReport(query) {
  return request({
    url: '/dispatch/salesDayReport/list',
    method: 'get',
    params: query
  })
}

// 查询 销售日报 详细
export function getSalesDayReport(reportId) {
  return request({
    url: '/dispatch/salesDayReport/' + reportId,
    method: 'get'
  })
}

// 新增 销售日报
export function addSalesDayReport(data) {
  return request({
    url: '/dispatch/salesDayReport',
    method: 'post',
    data: data
  })
}

// 修改 销售日报
export function updateSalesDayReport(data) {
  return request({
    url: '/dispatch/salesDayReport',
    method: 'put',
    data: data
  })
}

// 删除 销售日报
export function delSalesDayReport(reportId) {
  return request({
    url: '/dispatch/salesDayReport/' + reportId,
    method: 'delete'
  })
}
